package 数据结构下

import scala.collection.mutable

object SetDemo {
  def main(args: Array[String]): Unit = {

    val value = mutable.Set(1, 2)

    value += 3
    println(value)
    val a = Set(1, 2)
    val b = a + 3
    println(a)
    println(b)

    var c = Set(1, 2)
    print(c.hashCode())
    println()
    c += 3
    println(c.hashCode())
  }

}
